<?php

use yii\db\Migration;
use yii\db\Schema;

class m170125_024116_ADD_COLUMN_PRODUCT_ROOM_PRICE_SORT extends Migration
{
    public function up()
    {

         $this->addColumn('{{product_room}}', 'sort', Schema::TYPE_INTEGER. "(1)  DEFAULT  '0' COMMENT '房型顺序' ");
    }

    public function down()
    {
        echo "m170125_024116_ADD_COLUMN_PRODUCT_ROOM_PRICE_SORT cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
